#!/usr/bin/env ruby
#encoding: utf-8

module DB_VTB
  
  require 'active_record'
  
  class User < ActiveRecord::Base
    # FIXME: sort order, why order: 'id ASC' does not work?
    has_many :interests, -> { where notified: 0, is_valid: 1 }, foreign_key: 'uid'
  end
  
end
